#win用 mingw64 https://github.com/niXman/mingw-builds-binaries/releases
BINARY_NAME=go_run
init:
	go env -w GO111MODULE=on
	go env -w GOPROXY=https://goproxy.cn,direct
	go mod tidy
	go mod download
build: main.go
	go env -w GOOS=linux
	go build -o $(BINARY_NAME) $^
	go env -w GOOS=windows
clean:
	del $(BINARY_NAME)